/**
 *
 * @returns {{dataBase: {port: number, passwd: string, host: string, type: string, user: string}, common: string, heartbeat: number, websocket: {port: number, ident: string}, autoLoadPath: [string, string, string, string], redis: string}}
 */


module.exports = {

    //需要自动加载类模板的目录
    autoLoadPath: [
        "adm/daemons",
    ],
    //数据库 不使用 直接注释掉..
    dataBase: {
        host: "localhost",
        port: "3306",
        user: "root",
        passwd: "",
        database: "wz_data",
        url: "jdbc:p6spy:mysql://localhost:3306/wz_data?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useNewIO=true&useSSL=false",
    },

    //心跳间隔
    heartbeat: 1200,
    //http端口
    httpPort: 8080,
    //网站根目录
    webRoot: "www",
    websocket: {
        port: 9099,
        //标识符 ws://127.0.0.1:9099/wsk
        ident: "wsk",
    },
    //redis 不使用 直接注释掉..
    /*
     redis:{
     host:"127.0.0.1",
     port:6379,
     passwd:"",
     }
     */
    //存放多种数据库的一个数组，暂时不使用
    dbArr: [
        {
            host: "localhost",
            port: 3306,
            user: "root",
            passwd: "",
            database: "wz_data",
            url: "jdbc:p6spy:mysql://localhost:3306/wz_data?autoReconnect=true&useUnicode=true&characterEncoding=utf8&useNewIO=true&useSSL=false",
        },
        {
            host: "127.0.0.1",
            port: 6379,
            passwd: "",
        }
    ]
    //是否开启协程
}
